<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title></title>
    <link rel="stylesheet" href="../css/mui.min.css">
    <script src="../js/css.js"></script>
    <link rel="stylesheet" href="../css/style-zj.css">

    <link rel="stylesheet" href="../css/hzy.css">
</head>
<body style="background-color: white">
<header><a class="icon_back"></a>投诉建议</header>
<div class="head_height"></div>
<div class="suggestion">
    <div class="list">
        <ul>
            <li>
                <span class="label">订单号</span>
                <div><input type="text" placeholder="请输入订单号" v-model="orderCode"></div>
            </li>
            <li>
                <span class="label">联系人</span>
                <div><input type="text" placeholder="请输入联系人" v-model="name"></div>
            </li>
            <li>
                <span class="label">联系电话</span>
                <div><input type="text" placeholder="请输入联系电话" v-model="mobile"></div>
            </li>
            <li>
                <span class="label">投诉与建议</span>
                <textarea name="" id="" cols="30" rows="10" placeholder="不得少于20字" v-model="content"></textarea>
            </li>
        </ul>
    </div>
    <div class="submit" @click="submitInfo()">提交</div>
</div>
</body>
<script src="../js/config.js"></script>
<script src="../js/mui.min.js"></script>
<script>
    mui.init({});
    var app = new Vue({
        el: '.suggestion',
        data: {
            orderCode:'',
            name:'',
            mobile:'',
            content:'',
        },
        beforeCreate: function () {

        },
        updated: function () {

        },
        methods:{
            submitInfo:function (id) {
                var sendData = {
                    orderCode:this.orderCode,
                    name:this.name,
                    mobile:this.mobile,
                    content:this.content,
                    token:token,
                }
                get_ajax("order/addAdvice", sendData, function (data) {
                    mui.alert('提交成功！', '提示', function() {
                        history.go(-1);
                    });
                });
            },
        }
    })
</script>
</html>